<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link href="../../element/index.css" rel="stylesheet" />
		<script src="../../js/vue.js"></script>
		<script src="../../element/index.js"></script>
		<script src="../../js/axios.js"></script>
		<script src="../../js/gsaucommon.js"></script>
		<style>
			#app {
				width: 1200px;
				margin: 0px auto;
				padding: 0px;
				/* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) */
				/* border: 1px ; */
				box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
			}

			.el-input {
				width: 280px;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				border-bottom: 2px solid #A0CFFF;
				border-radius: 8px;
			}

			.el-form label {
				display: inline-block;
				font-size: 20px;
				width: 120px;
				border-right: 2px solid #00FFFF;
				border-radius: 20px;
			}

			.el-input__inner {
				border: none;
				text-align: center;
				font-size: 18px;
			}

			.d2 li {
				list-style: none;
			}

			.lyric-enter,
			.lyric-leave-to {
				opacity: 0;
				transform: translateY(10px);
			}

			.lyric-enter-to,
			.lyric-leave {
				opacity: 1;

			}

			.lyric-enter-active,
			.lyric-leave-active {
				transition: all 0.7s;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<div id="" style=" position: sticky; z-index: 2; top: 0px; background-color: white;">
				<el-row>
					<el-col :span="6" style="padding-left: 80px;">
						<h3>审核结果</h3>
					</el-col>
					<el-col :span="12" style="margin-top: 20px;">
						<el-steps :active="active" finish-status="success">
							<el-step title="填报数据"></el-step>
							<el-step title="进行中"></el-step>
							<el-step title="流转完成"></el-step>
						</el-steps>
					</el-col>
					<el-col :span="6" style="text-align: right; padding-top: 15px; padding-right: 80px; ">
						<el-button type="primary" @click="golist">
							<!-- <el-link style="color: white;"  href="list.html" target="_self" ></el-link> -->
							返回
						</el-button>
					</el-col>
				</el-row>
				<hr />
			</div>

			<el-form ref="form" label-width="180px">
				<el-row style="margin-top: 30px;">
					<el-row>
						<el-col :span="24">
							<el-form-item label="论文名称:">
								<el-input style="width: 500px;" v-model="lunwen.name" readonly></el-input>
							</el-form-item>
							<!-- 跟具自己的修改 可修改为 项目名称 书名 荣誉称号 竞赛名称 专利或软件著作权名称-->
						</el-col>
					</el-row>

					<el-row>
						<el-col :span="12">
							<el-form-item label="填写人姓名:">
								<el-input v-model="lunwen.tianbaoName" readonly></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item label="学校是否核定:">
								<el-input v-model="lunwen.isSchoolHeding" readonly></el-input>
							</el-form-item>
						</el-col>
					</el-row>

					<el-row>
						<el-col :span="12">
							<el-form-item label="刊物名称:">
								<el-input v-model="lunwen.kanwuName" readonly></el-input>
								<!-- 跟具自己的修改可修改为 奖项名称 出版社 组织单位 主持人 专利/软著号  -->
								<!-- 荣誉称号的可以删除此item -->
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item label="得分:">
								<el-input v-model="lunwen.deFen" readonly></el-input>
								<!-- 教材与专著，教改，科研项目，专利软著的删除此item -->
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item label="论文类型:">
								<el-input v-model="lunwen.lunwenLeixing" readonly></el-input>
								<!-- 教材与专著，教改，科研项目，专利软著的删除此item -->
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item label="刊物级别:">
								<el-input v-model="lunwen.kanwuJibie" readonly></el-input>
								<!-- 仅 发表论文、指导竞赛、获奖情况的（修改为“奖项级别”）保留-->
							</el-form-item>
						</el-col>

						<el-col :span="12">
							<el-form-item label="是否通讯作者:">
								<el-input v-model="lunwen.isTongxunZuozhe" readonly></el-input>
								<!-- 仅 发表论文、指导竞赛、获奖情况的（修改为“奖项级别”）保留-->
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item label="总人数:">
								<el-input v-model="lunwen.zongRenShu" readonly></el-input>
								<!-- 仅获奖情况的保留 -->
							</el-form-item>
						</el-col>

						<el-col :span="12">
							<el-form-item label="本人排名:">
								<el-input v-model="lunwen.meSort" readonly></el-input>
								<!-- 仅获奖情况的保留 -->
							</el-form-item>
						</el-col>
					</el-row>
					<el-col :span="12">
						<el-form-item label="作者:">
							<el-input v-model="lunwen.tianbaoName" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>

					<el-col :span="12">
						<el-form-item label="出版时间:">
							<el-input v-model="lunwen.pubDate" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item label="提交人:">
							<el-input v-model="lunwen.tianbaoName" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item label="当前节点:">
							<el-input v-model="lunwen.node" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>

					<el-col :span="12">
						<el-form-item label="提交时间:">
							<el-input v-model="lunwen.createTime" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>

					<el-col :span="12">
						<el-form-item label="更新时间:">
							<el-input v-model="lunwen.updateTime" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item label="审批负责人:">
							<el-input v-model="lunwen.manager" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item label="当前流程状态:">
							<el-input v-model="lunwen.status" readonly></el-input>
							<!-- 仅获奖情况的保留 -->
						</el-form-item>
					</el-col>

					<el-col :span="24">
						<el-form-item label="认证材料:">
							<el-input type="button" v-model="pleaseClick" @click.native="showcont2"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-collapse-transition>
							<div v-show="show2" class="d2">
								<ul style="text-align: center;">
									<li v-for="(item,index) in zhengmingcailiao">
										<a :href="header+'files/'+item.fileFullPath"><i class="el-icon-document"></i>
											{{item.fileName}}</a>
									</li>
								</ul>
							</div>
						</el-collapse-transition>
					</el-col>
					<el-col :span="24">
						<el-form-item label="审批流程:">
							<el-input type="button" v-model="pleaseClick" @click.native="showcont1"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-collapse-transition>
							<div class="block" v-show="show" style="padding-left: 80px;">
								<el-timeline>
									<el-timeline-item v-for="(item,index) in liuchengData">
										<el-card>
											<h4>{{item.shenHeResult}}</h4>
											<p>{{item.tijiaoName}} 提交于 {{item.tijiaoTime}}</p>
										</el-card>
									</el-timeline-item>
								</el-timeline>
							</div>
						</el-collapse-transition>
					</el-col>
					<el-col :span="24">
						<el-form-item label="审核意见:">
							<el-input type="textarea" v-model="textarea" style="width: 400px;"></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="8">
						<el-form-item label="审核结果:">
							<el-switch style="display: block;margin-top: 10px;margin-left: 5px;" v-model="value2"
								active-color="#13ce66" inactive-color="#ff4949" active-text="通过" inactive-text="未通过">
							</el-switch>
						</el-form-item>
					</el-col>
					<el-col :span="24" style="text-align: center;margin-bottom: 25px;">
						<!-- <el-button type="primary" style="width: 100px; height: 40px;" @click="submit">保存</el-button> -->
					</el-col>
				</el-row>
			</el-form>
		</div>
	</body>
</html>
<script>
	let vm = new Vue({
		el: "#app",
		data: {
			lunwen: [],
			zhengmingcailiao: [],
			id: "",
			header: '',
			activeName: 'second',
			input: "利用APSIM模型分析不同播期和耕作方式对旱地小麦籽粒干物质积累的影响",
			show: false,
			show2: false,
			textarea: "需要补充材料",
			value: "",
			value2: false,
			active:1,
			cailiao: [
				"3.png", "d.doc"
			],
			liuchengData: [{
					message: "提交了新认证材料",
					name: "kal",
					data: "2016-05-02'"
				},
				{
					message: "提交了新认证材料",
					name: "kal",
					data: "2016-05-08'"
				},
				{
					message: "提交了新认证材料",
					name: "kal",
					data: "2016-05-09'"
				}
			],
			pleaseClick: "点击显示",
		},
		methods: {
			golist: function() {
				window.location = "list.html"
			},
			showcont1: function() {
				this.show = !this.show;
			},
			showcont2: function() {
				this.show2 = !this.show2;
			},
			submit: function() {
				console.log(this.textarea)
				console.log(this.value2)
			},
			findZhengMingCaiLiao: function(id) {
				axios.get(window.gsau + "lunwen/findzhengmingcailiao/" + id).then((res) => {
					console.log(res)
					this.zhengmingcailiao = res.data.data
					console.log(this.zhengmingcailiao[0].fileFullPath)
				})
			},
			findAll: function(id) {
				axios.get(window.gsau + "lunwen/find/" + id).then((res) => {
					console.log(res)
					this.lunwen = res.data.data
					if (this.lunwen.status == "流转完成") {
						this.value2 = true
						this.active=3
						this.textarea = "已完成审批"
					}
				})
			},
			findShenhe:function(id){
				axios.get(window.gsau+"lunwen/findShenhe/"+id).then((res)=>{
					this.liuchengData=res.data.data
					console.log("11111111111111")
					console.log(this.liuchengData)
				})
			},

		},
		created: function() {
			this.id = localStorage.getItem("id")
			this.findAll(this.id)
			this.findZhengMingCaiLiao(this.id)
			this.header = window.gsau
			this.findShenhe(this.id)
		},

	})
</script>
